import { getAction, deleteAction, putAction, postAction, httpAction, postFormData } from '@/api/manage'
const gateway = '/api/gateway/jic-backend-mall'

const baseUrl = window._CONFIG['domianURL'] || '/jeecg-boot'
export const addUpdateConfig = (params) => postAction(gateway + `/mall/community/addUpdateConfig`, params) // 基础配置-添加/编辑
export const configList = (params) => postAction(gateway + `/mall/community/configList`, params) // 基础配置查询
export const whyPage = (params) => postAction(gateway + `/mall/community/why/page`, params) // 审核相关配置
export const whyAdd = (params) => postAction(gateway + `/mall/community/why/add`, params) // 审核相关配置新增
export const whyUpdate = (params) => postAction(gateway + `/mall/community/why/update`, params) // 审核相关配置编辑
export const categoryQuery = (params) => postAction(gateway + `/mall/community/category/query`, params) // 社区类目管理
export const dimQuery = (params) => postAction(gateway + `/mall/community/dim/query`, params) // 选择类目（小类查询）
export const whyDelete = (params) => postAction(gateway + `/mall/community/why/delete`, params) // 审核相关配置删除
export const whyModifySort = (params) => postAction(gateway + `/mall/community/why/modify/sort`, params) // 审核相关配置排序
export const categoryAdd = (params) => postAction(gateway + `/mall/community/category/add`, params) // 社区类目新增
export const categoryEdit = (params) => postAction(gateway + `/mall/community/category/edit`, params) // 社区类目编辑
export const categoryDelete = (params) => postAction(gateway + `/mall/community/category/delete`, params) // 社区类目删除
export const sensitiveEdit = (params) => postAction(gateway + `/mall/community/sensitive/edit`, params) // 社区更多配置-敏感词添加
export const sensitiveSelect = (params) => postAction(gateway + `/mall/community/sensitive/select`, params) // 社区更多配置-敏感词详情


export const switchControl = (params) => getAction(gateway + `/mall/evaluationSize/button/switch/control`, params) // 小程序按钮开关控制

export const findButtonSwitch = (params) => getAction(gateway + `/mall/evaluationSize/find/button/switch`, params) // 获取小程序按钮开关

